package com.dashboard.cloud.sentinel.rules.controller;

import com.dashboard.cloud.common.utils.DateUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * All rights Reserved, Designed By www.super-master.com
 *
 * @ProjectName: spring-cloud-dashboard
 * @Package: com.dashboard.cloud.sentinel.consume.controller
 * @ClassName: SentinelTestController
 * @Description: []
 * <p> </p>
 * @Author: [Lance Ting]
 * @Date: 2024/11/11 17:27
 * @Version: V1.0
 * @Copyright: 2024 www.super-master.com Inc. All rights reserved.
 * TODO: 注意,本文件Lance Ting所作,如果转载或使用请标明具体出处!
 **/
@Slf4j
@RestController
public class SentinelTestController {

    @GetMapping("/test")
    public String testSentinel() throws InterruptedException {
        Thread.sleep(800);
        log.info("---> {}", DateUtil.obtainCurrentTime());
        return "hello sentinel";
    }
}